package com.idealighter.game.games.fqzs.handler;

import com.idealighter.game.core.annotation.ResMsgHandler;
import com.idealighter.game.games.fqzs.message.ResBetMsg;
import com.idealighter.game.message.ModuleMsgIdConstant;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.robot.core.Player;
import com.idealighter.game.robot.handler.ResMessageHandler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


@ResMsgHandler(ModuleMsgIdConstant.Fqzs.BET)
public class ResBetHandler implements ResMessageHandler {
  private static final Logger LOG = LoggerFactory.getLogger(ResBetHandler.class);

  @Override
  public void action(Player player, ResMessage message) {
    ResBetMsg msg = (ResBetMsg) message;
    LOG.info("[飞禽走兽]玩家[{}][{}]下注成功：图标[{}]筹码[{}]成功", player.userName, player.playerId,
        msg.getBetInfo().getIcon(), msg.getBetInfo().getBet());
  }
}
